package com.atguigu.behavior.strategy;

public class DuckClient {
    public static void main(String[] args) {
        WildDuck wildDuck = new WildDuck();
        wildDuck.init();
        wildDuck.fly();
        wildDuck.quack();
        System.out.println("==================");

        HomeDuck homeDuck = new HomeDuck();
        homeDuck.init();
        homeDuck.fly();
        homeDuck.quack();

        System.out.println("==================");

        ToyDuck toyDuck = new ToyDuck();
        toyDuck.init();
        toyDuck.fly();
        toyDuck.quack();
    }
}
